<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>

        for(i = 0;i < 5;i++){
                for(var j = 0;j <= i;j++){
                        document.write("*");
                }
                document.write("<br />");
        }


















</script>
</body>
</html>